/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Homework.demo03;

import java.util.Vector;

/**
 *
 * @author Administrator
 */
public class VectorDemo2 {
    public static void main(String [] args){
       Vector  v = new Vector();
       v.add("第一");
       v.add(new Integer(1));
       v.add(new Double(1.1));
       v.add("第二");
       v.add(new Integer(2));
       v.add(new Double(2.2));
       v.add(new Integer(3));
       v.add(new Double(3.3));
      v.add(new Integer(4));
      v.add(new Double(4.4));
        System.out.println("Vector容器的内容是：");
        System.out.println(v);
        
        System.out.println("v容器的容量是：");
        System.out.println(v.capacity());
        System.out.println("v中元素的个数");
        System.out.println(v.size());
        
    }

}
